<?php
//include controller class
/*
  //declaration popup
  $varKirim = $_GET["var"];
  if($varKirim!="")
  $_SESSION["var"] = $varKirim;
  else
  $varKirim = $_SESSION["var"];

  $nilai = $_GET["val"];
  if($nilai!="")
  $_SESSION["val"] = $nilai;
  else
  $nilai = $_SESSION["val"];
  $mode = $_GET["mode"];
  if($mode!="")
  $_SESSION["mode"] = $mode;
  else
  $mode = $_SESSION["mode"];
 *
 */
?>
<script language="javascript" type="text/javascript">
	
    function getValueSingle(kode, nama, elm) {
        try {
            parent.parent._obj_fSendValue(kode, nama, 'id_group_user', 'group_user');
        }
        catch(e) { alert(e.message); }
        parent.parent.focus();

<?php echo CloseGB(false); // close grebox    ?>
                 
    }
</script>

<h3 class="title-popup">Data Kelompok Pengguna</h3>

<div class="DivTable">
    <table class="GridTable">
        <tr class="GridHeader">
            <td>No.</td>
            <td>Nama Kelompok</td>
            <td>Keterangan</td>
        </tr>
        <?php
        if ($rows > 0) {
            $nomor = 0;
            foreach ($data as $row) {
                $nomor++;

                $styleTR = "GridItem1";
                ?>
                <tr class="<?php echo $styleTR; ?>" onclick="getValueSingle('<?php echo $row->id_group_user; ?>', '<?php echo $row->group_user; ?>')">
                    <td><?php echo $nomor; ?></td>
                    <td><?php echo $row->group_user; ?></td>
                    <td><?php echo $row->remark; ?>
                        <input type="hidden" name="vNama" value="<?php echo str_replace("'", "\'", $row->group_user); ?>" /></td>
                </tr>
                <?php
            }
        } else {
            ?>
            <tr class="GridItem1">
                <td colspan="3">Tidak ada data</td>
            </tr>

            <?php
        }
        ?>
    </table>
</div>

<br class="bersih" />
